﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class TempOdGsBaseVectorizeViewJoinMT : TempOdGsBaseVectorizeViewJoin, OdGiConveyorContext, OdGiDeviation
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public TempOdGsBaseVectorizeViewJoinMT(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(TempOdGsBaseVectorizeViewJoinMT obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.deletePD_TempOdGsBaseVectorizeViewJoinMT(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		HandleRef OdGiConveyorContext.GetCPtr()
		{
			return new HandleRef(this, GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_OdGiConveyorContext_GetCPtr(this.swigCPtr.Handle));
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		HandleRef OdGiDeviation.GetCPtr()
		{
			return new HandleRef(this, GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_OdGiDeviation_GetCPtr(this.swigCPtr.Handle));
		}

		public new virtual uint numVectorizers()
		{
			uint result = GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_numVectorizers(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdGsBaseVectorizer getVectorizer(bool arg0)
		{
			IntPtr intPtr = GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_getVectorizer(this.swigCPtr, arg0);
			OdGsBaseVectorizer result = (intPtr == IntPtr.Zero) ? null : new OdGsBaseVectorizer(intPtr, false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void releaseVectorizer(OdGsBaseVectorizer arg0)
		{
			GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_releaseVectorizer(this.swigCPtr, OdGsBaseVectorizer.getCPtr(arg0));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual bool effectivelyVisible()
		{
			bool result = GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_effectivelyVisible(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void onTextProcessing(OdGePoint3d arg0, OdGeVector3d arg1, OdGeVector3d arg2)
		{
			GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_onTextProcessing(this.swigCPtr, OdGePoint3d.getCPtr(arg0), OdGeVector3d.getCPtr(arg1), OdGeVector3d.getCPtr(arg2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual uint drawContextFlags()
		{
			uint result = GlobalsPINVOKE.TempOdGsBaseVectorizeViewJoinMT_drawContextFlags(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
